package com.etime.shycourse.services.salers.interfaces;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etime.shycourse.pojo.Department;

import java.util.List;

/**
 * @author wb
 * @since 2022-03-24
 */
public interface DepartmentServices {
    /**
     * 获取全部可以用的市场部门
     *
     * @return Department list
     */
    List<Department> selectAllList();

    /**
     * 销售团队管理 分页
     *
     * @param pagenum
     * @param pagesize
     * @return Page<Department>
     */
    Page<Department> selectPage(Long pagenum, Long pagesize);

    /**
     * 根据id查询 销售团队
     *
     * @param ID
     * @return Department
     */
    Department selectDepartmentById(Integer ID);

    /**
     * 插入一个销售团队
     *
     * @param department
     */
    Integer insertDepartment(Department department);

    /**
     * 修改一个部门
     *
     * @param department
     */
    Integer updateDepartment(Department department);
}
